
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/app/customers.js',CClientScript::POS_BEGIN);?>
<div id="left-col">
    <?php 
    switch($type){
        case DOCTYPE_CUST:
            $this->renderPartial('_side',array(
                'customer'=>$customer,
                'type'=>$type,
            ));
            break;
        case DOCTYPE_LOC:
            $this->renderPartial('_side',array(
                'location'=>$location,
                'customer'=>$customer,
                'type'=>$type,
            ));
            break;
        case DOCTYPE_DISPATCH:
            $this->renderPartial('_side',array(
                'dispatch'=>$dispatch,
                'type'=>$type,
            ));
            break;

    }
    ?>
    

</div>

<div id="right-col">

    <div class="wrap">
        <div class="container">

            
            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">
                <?php if($model->isNewRecord):?>
                <h1>Add Document</h1>
                <?php else:?>
                <h1>Update Document</h1>
                <?php endif?>
                
                <br/>
                <?php $this->renderPartial('_form',array(
                    'model'=>$model,
                ));?>
                
                


                
            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('application.views.copyright'); ?>
</div> <!-- left-col -->